package com.wtcrazy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wtcrazy.entity.*;
import com.wtcrazy.utils.JsonResult;

import java.util.List;
import java.util.Map;

public interface IAdminService extends IService<Admin> {
    JsonResult login(Admin admin);

    JsonResult checkToken(String token);

    public List<User> getAllUsers();


    Map<String, Object> findPage(Integer pageNum, Integer pageSize, String username);

    Map<String, Object> findPost(Integer pageNum,
                                 Integer pageSize,
                                 String title,
                                 String content);

    String deleteUser(String id);

    List<Object> getView();

    List<Comment> getcomment();

    List<Record> getRecord();

    Map<String, Object> findComment(Integer pageNum,
                                    Integer pageSize,
                                    String content);

    Map<String, Object> findOrder(Integer pageNum,
                                  Integer pageSize,
                                  String id
    );
}
